<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>uupaa-detect.js - uuClass test</title>
<style type="text/css">@import url(../README.css);</style>
<script type="text/javascript" src="../uupaa-detect.js"></script>
</head>
<body>
<div id="log"></div>
<script>
function boot() {
  var MyClass = uuClass();
  MyClass.prototype = {
    construct: function(var1, var2 /*, ... */) {
      // 初期化
      this._var1 = var1;
      this._var2 = var2;
    },
    method: function() {
      return this._var1 * this._var2;
    }
  };
  var my = new MyClass(10, 20); // 自動的に construct() を実行する。
  document.getElementById("log").innerHTML += my.method(); // "200"
}
window.onload = boot;
</script>
<pre class="eg">
function boot() {
  var MyClass = <b>uuClass</b>();
  MyClass.prototype = {
    <b>construct</b>: function(var1, var2 <u>/*, ... */</u>) {
      <u>// 初期化</u>
      this._var1 = var1;
      this._var2 = var2;
    },
    method: function() {
      return this._var1 * this._var2;
    }
  };
  var my = new <b>MyClass</b>(<b>10, 20</b>); <u>// 自動的に construct() を実行する。</u>
  document.getElementById("log").innerHTML += my.method(); <u>// "200"</u>
}
window.onload = boot;
</pre>
</body>
</html>

